package iedcyt.acute.dataAccess.domain.acute1;

public class Author {

	private int _idAu;
	private String _name;

	public int get_idAu() {
		return _idAu;
	}
	public void set_idAu(int _idAu) {
		this._idAu = _idAu;
	}
	public String get_name() {
		return _name;
	}
	public void set_name(String _name) {
		this._name = _name;
	}
	public Author(int _idAu, String _name) {
		super();
		this._idAu = _idAu;
		this._name = _name;
		
	}
	@Override
	public String toString() {
		return "Author [ idAu = " + _idAu + ", name = " + _name + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + _idAu;
		result = prime * result + ((_name == null) ? 0 : _name.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Author other = (Author) obj;
		if (_idAu != other._idAu)
			return false;
		if (_name == null) {
			if (other._name != null)
				return false;
		} else if (!_name.equals(other._name))
			return false;
		return true;
	}
	
}
